while True:
    content = input('请输入信息:')
    f = open('record.log',mode='a',encoding='utf8')
    f.write(f'{content}\n')
    f.close()